how area of triangle is derived